<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
    class Eyeworx_PatientRecords_Transaction extends Module {

        public function patient_trans($patient) {
            $transactions_recordset = new Eyeworx_PatientRecords_Transaction_RBO_RBOTransactions();
            $rb = $transactions_recordset->create_rb_module($this);
            $params = array(
                array('patient_name'=>$patient['id']),
                array('patient_name'=>true)
            );
            $this->display_module($rb, $params, 'show_data');
        }

        public function body() {
            $transactions_recordset = new Eyeworx_PatientRecords_Transaction_RBO_RBOTransactions();
            $this->display_module($transactions_recordset->create_rb_module($this));
        }

        public function caption() {
            return 'Patient Transaction';
        }

    }
?>